package com.yuke.cloud.service.uac.service.impl;

import com.google.common.base.Preconditions;
import com.yuke.cloud.service.uac.dao.AccUserInfoMapper;
import com.yuke.cloud.service.uac.dto.AccUserInfoDto;
import com.yuke.cloud.service.uac.entity.AccUserInfo;
import com.yuke.cloud.service.uac.service.AccUserInfoService;
import com.yuke.cloud.common.core.support.BaseService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;


/**
 * Created by wg on 2018/12/08.
 */
@Service
@Transactional
public class AccUserInfoServiceImpl extends BaseService<AccUserInfo> implements AccUserInfoService {
    @Resource
    private AccUserInfoMapper accUserInfoMapper;

    @Override
    public AccUserInfoDto selectUserInfoByUserId(Long userId) {
        Preconditions.checkArgument(userId != null, "用户ID不能为空");
        return accUserInfoMapper.selectUserInfoByUserId(userId);
    }
}
